<template>
    <view class="category-menu data-v-ffa5ce46">
        <view @tap="__e" class="item data-v-ffa5ce46" :data-event-opts="[['tap', [['handleClick', ['$0'], [[['list', '', index]]]]]]]" v-for="(item, index) in list" :key="index">
            <view class="ip-thumb data-v-ffa5ce46">
                <image class="data-v-ffa5ce46" hoverClass="hover" mode="aspectFill" :src="item.thumb + '?x-oss-process=image/resize,w_250'"></image>
            </view>

            <text class="title data-v-ffa5ce46">{{ item.title }}</text>
        </view>
        <view @tap="__e" class="item data-v-ffa5ce46" :data-event-opts="[['tap', [['more', ['$event']]]]]">
            <image class="data-v-ffa5ce46" hoverClass="hover" src="/static/more-round.png"></image>
            <text class="data-v-ffa5ce46">更多</text>
        </view>
    </view>
</template>

<script>
import tabBar from '@/components/TabBar/tabBar';
(global.webpackJsonp = global.webpackJsonp || []).push([
    ['components/IPList/IPList'],
    {
        '3ff6': function (t, n, e) {
            'use strict';

            e.r(n);
            var i = e('e3c7');
            var c = e('78f6');
            for (var o in c) {
                if (['default'].indexOf(o) < 0) {
                    (function (t) {
                        e.d(n, t, function () {
                            return c[t];
                        });
                    })(o);
                }
            }
            e('cafe9');
            var a = e('f0c5');
            var u = Object(a.a)(c.default, i.b, i.c, false, null, 'ffa5ce46', null, false, i.a, void 0);
            n.default = u.exports;
        },
        '78f6': function (t, n, e) {
            'use strict';

            e.r(n);
            var i = e('e423');
            var c = e.n(i);
            for (var o in i) {
                if (['default'].indexOf(o) < 0) {
                    (function (t) {
                        e.d(n, t, function () {
                            return i[t];
                        });
                    })(o);
                }
            }
            n.default = c.a;
        },
        cafe9: function (t, n, e) {
            'use strict';

            var i = e('ec0f');
            e.n(i).a;
        },
        e3c7: function (t, n, e) {
            'use strict';

            e.d(n, 'b', function () {
                return i;
            });
            e.d(n, 'c', function () {
                return c;
            });
            e.d(n, 'a', function () {});
            var i = function () {
                this.$createElement;
                this._self._c;
            };
            var c = [];
        },
        e423: function (t, n, e) {
            'use strict';

            (function (t) {
                Object.defineProperty(n, '__esModule', {
                    value: true
                });
                n.default = void 0;
                var e = {
                    props: {
                        refreshCounter: {
                            type: Number
                        }
                    },
                    data: function () {
                        return {
                            list: []
                        };
                    },
                    watch: {
                        refreshCounter: function () {
                            this.initData();
                        }
                    },
                    mounted: function () {
                        this.initData();
                    },
                    methods: {
                        initData: function () {
                            var that = this;
                            this.$http('/ip/categories', 'GET', {
                                per_page: 5
                            }).then(function (n) {
                                that.list = n.data.list;
                            });
                        },
                        handleClick: function (n) {
                            t.navigateTo({
                                url: '/pages/search/index?category_id='.concat(n.id, '&title=').concat(n.title)
                            });
                        },
                        more: function (n) {
                            t.navigateTo({
                                url: '/pages/ip/index'
                            });
                        }
                    }
                };
                n.default = e;
            }.call(this, e('543d').default));
        },
        ec0f: function (t, n, e) {}
    }
]);
(global.webpackJsonp = global.webpackJsonp || []).push([
    'components/IPList/IPList-create-component',
    {
        'components/IPList/IPList-create-component': function (t, n, e) {
            e('543d').createComponent(e('3ff6'));
        }
    },
    [['components/IPList/IPList-create-component']]
]);
</script>
<style>
@import './IPList.css';
</style>
